package idv.jieh.commons.book;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.*;

/**
 * <p>Title: 藍色小惡魔的系統</p>
 * @author Jieh
 * @version 1.0
 */
public class QueryBookCtrl extends HttpServlet{
  public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    this.doPost(request, response);
  }

  // 執行翻頁的動作。
  public void doPost(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    HttpSession session = request.getSession(true);
    EasyBook.isBook(request, session);
    response.sendRedirect(request.getParameter("pvispage"));
  }

} // end class QueryBookCtrl
